We use this section to document all established HowTo projects. Please check this section before posting on our forum. Thanks!
Note that admins and qualified editors and contributors can add to and edit documents in this section.
How to Find the IP Address of Your Computer
Some time you need to find your computer IP so that other computers on the same local network can use the printer or other devices that are directly connected to your computer. Use this command on the terminal window:
Your computer IP is listed after inet addr and it is usually something like “192.168.x.x”
How to Find out the Gateway/Router IP Address
If your linux system uses Network Manager, just right-click its icon and then click on “Connection Information”. The gateway IP is listed as “Default Route” – your primary DNS server IP is mostly like the same as this gateway IP.
If you want to do it on the terminal, the command is “sudo route -n”
How to Set up a Static IP Address for a Linux Computer
Some time you may need to set up a static IP for a computer, for example, for your main central computer that connects to your computer, fax machine, etc. or for a computer that you use as a storage for the whole household. How do you do it?
Here is how and it is the easiest and simplest way to assign a fixed IP to your Linux computer! Right click on Network Manager that is located on the bottom right hand corner of your screen and then click on “Connection Information” to view your existing settings. This helps you to determine a lot of things that you need for the manual settings for the static IP. Write down the IPs you see or capture the screen with your computer or a mobile phone.
After closing the previous screen, right click on Network Manager again. This time we are going to click on “Edit Connections” and you will see at least one connection that you are currently using. Click on “Add” to add a new entry. You can name it “Wired Static IP Connection” or whatever you want.
Go directly to the “IPv4 Settings” as that is the only area you need to change. Once you get there, select “Manual” for the method as we are going to manually enter a static IP. Just following the screenshot for entries using the information from the previous screen. Once the changes are saved, you can disconnect the existing connection and re-connect using the one you just set up. That’s it!
Don’t forget to enter an IP in the field of “DNS Servers” for the Manual IPv4 Settings – wrong setting for this area will not your computer to connect even though the rest is correct.
How to Share a Printer over Ubuntu/Linux Network
Beside using Samba to share a printer over the Linux/Ubuntu network, which tends to give problems, there is a better way sharing a printer: using CUPS.
CUPS (Common UNIX Printing System) is the de facto standard for Linux and Unix machines as well as the built-in printing system in the Macintosh as of Mac OS X Version 10.2. This means that any printer that is connected to your Ubuntu Linux desktop is a CUPS computer.
The following 20-second trick was posted by Arjen Karel on his blog – I just re-phrase it here to make it easier to follow:
- On the computer to which your printer is connected, type “http://localhost:631” in your browser address bar – without the quotes of course. Now you enter the main page of the CUPS software.
- Click on the “Administration” tab on the top menu and then check both of these two settings: “Share printers connected to this system” and “Allow remote administration” – make sure you DO NOT check “Allow printing from the Internet” as you only want computers on your local network to access the admin area, not any one else – certainly not anyone out there over the internet.
- Click on the “Change Settings” button to confirm the changes – you may need to enter your own login username and password.
- Open the Ubuntu text command Terminal and type “ifconfig” to find out the IP of this host computer that has the printer connected to – write down this IP address as you need it to install this network printer on other computers on the network. If you have set up a static IP as described above, then you just use that static IP.
- Suppose the host computer’s IP is 192.168.1.101, now go to any other computers on the network that need to share this network printer, open your browser and type “http://192.168.1.101:631” – now you are accessing the CUPS on the host computer from a guest computer.
- Browse to the printer you want to share by clicking on the “Printers” tab on the top menu and that printer’s IP-based address will show up in your browser’s address bar. In my case, the address is “http://192.168.0.101:631/printers/Samsung-SCX4521F-Compaq”
- Copy this IP-based printer address, then go to “System > Administration > Printing” to add this printer. In the “Enter device URI” field under “Device > Other” enter the IP-based address of the network printer.
- Go through the rest of the process to finish the configuration of this network printer – you may want to give a proper name to better identify this printer as you can have as many printers configured this way on the network.
That’s it! Enjoy and many thanks again to Arjen Karel to posted this trick! Note that this trick works on your local network even when the printer-host computer is on gateway 192.168.1.x while another on 192.168.0.x – in this case the two computer cannot normally share anything.
How to Run Windows inside Ubuntu or Linux Mint
The instructions given here are tested in Ubuntu but should apply to Linux Mint or any other Linux desktop systems without problems. To save space, we do not copy it here – please click on the link to see how to run Windows or any operating system inside Ubuntu or Linux Mint.
The iBus Language Input Bar Is Missing – How to Enable It Manually?
We have to use the command line for this case – just copy and paste the following one-line command to the terminal:
How to Link a Particular File Type to Certain Software
You do that by clicking the “Open With” tab when viewing the properties of a particular file type.
For example, files ended with .txt are text files and you may want to open all these files with your favorite text editor such as Bluefish (if not gedit or others), then this is what you should do…
- Open your Linux file browser and find any file with the .txt ending, say, readme.txt
- Right click the file name and then click on “Properties” for the file – usually that is the last item on the list.
- You should see a tab called “Open With” – click on it.
- You now see a list of applications that one might use to view and edit this readme.txt file or other files that have the same extension.
- Pick the one you like on the list
- If you do not see your favorite application on the list, then click on the “Add” button to browse and add your favorite to the list.
The rest of the steps should be self-explaining and you can use the same approach to change the settings later on.
The following instructions are for the Chinese users who would like to install Chinese input methods…
下面的教程是要帮助已经安装好的人，如何通过Linux Mint系统的“控制中心”（Control Centre）下的“语言设置”，来安装 iBus 以及其界面的中文输入法 ibus-rime（最好的拼音简体繁体输入法）。
（3）点击“输入法”，就会看到下一个界面，而且你看到我已经安装了 iBus，而且已经选用了它。没有安装 iBus 的，你需要点击“添加对 iBus 的支持”来安装。安装好后，请不要点击iBus一栏的”安装可选部件”（那样就会安装很多不必要的输入法）。你需要在上一栏像我那样选择使用 iBus：
（4）下面我演示一下如何安装最好用的中文拼音输入法（可同时用拼音输入简体或繁体）ibus-rime，也顺便演示一下如何通过 Linux Mint 自带的“软件管理器”轻松安装任何软件。请点击左下角的“Menu”，然后再点击“软件管理器”，输入密码就可进入。进入后在搜索框输入 ibus-rime，就可看到如下图所示的界面：
（8）点击“Select an input method”，然后选择“Select all input methods”。再次点击“Select an input method”就会看到所有的语言输入选项。在“汉语”下选择“Rime”就可以了。再次启动系统，你就会在用鼠标点击右下角的键盘小图时，看到英语和汉语两个输入方式。小巧门：用 Ctrl-space 可以随意切换中英两种输入，很方便。
附：在Rime输入状态下，点击 F4 就可选择切换繁体和简体的输入。