Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, July 19, 2016

trouble connecting my android phone to my Linux OS (mageia)

I have trouble connecting my android phone to my Linux OS (mageia) I am using Gnome and nautilus is my file manager.
After reading an article on net. I got my problem solved. The answer as below:

Alternatively you could transfer the files via wifi. There may be other ways to do this but my favourite method is running an ftp server on the phone and accessing that through nautilus:

  • First of all, you should only do this in a trusted local network (e.g. at your home)
  • make sure your smartphone and your PC are connected to the same local network
Smartphone

  • install an app like Ftp Server on your android phone and freely choose user name and password (and disable "Anonymous user").
  • start the server (by tapping the red on/off icon if you use Ftp Server)
Computer

  • open Nautilus on your PC and click on "Connect to Server" at the bottom of the list on the left
  • in the dialogue, enter the url that is displayed in the Ftp Server app (something like "ftp://192.168.178.13:2221")
  • when prompted, enter the user name and password you configured in the app
You're done! You can even bookmark that location in Nautilus. Whenever you want to transfer files, just connect smartphone and PC to your local network, start Ftp Server on the phone and click on the bookmark in Nautilus.

This answer was given by danzel. Thank you.

Monday, September 26, 2011

Create pdf with ImageMagick

Change to the directory which containthe .jpg image files. Then, issue the the command:
convert -define pdf:use-trimbox=true *.jpg book.pdf
That's it.

Friday, May 21, 2010

Install ibus to Mandriva 2010

下载安装 ibus, ibus-table, ibus-pinyin, ibus-chewing and ibus-gtk.
在 Gnome 的工具列点击-》系统 -》区域设置 -》将输入法改成 ibus 然后注销,重新登陆。
打开终端,输入指令:ibus-setup。启动ibus。
修改主目录中的.bashrc文件。把以下的文字复制到 .bashrc。 在该文件的“# User specific aliases and functions”的下一行,加上以下几行:

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

保存该文件。

下一步是到 系统-》 首选项 -》启动应用程序 -》添加 -》在命令处 加入 
ibus-daemon -d 名称填上 ibus 保存。
退出,注销并重新登录。可以用了。





Thursday, March 5, 2009

Configure OpenDNS in Mandriva 2009

I found an article on how to configure OpenDNS in Mandriva 2009.
You can read the original article here. Look for the message from viking777 and it is.

我终于找到如何在Mandriva 2009中设置OpenDNS 的方法了。

1) 编辑 /etc/resolv.conf 把 nameservers 的 DNS 改成
208.67.222.222 和208.67.220.220 然后存档。

2) 执行以下指令:

chattr +i /etc/resolv.conf

3)完成。