Posts

Showing posts from April, 2017

Spotify on linux

Image
Yeah Everybody, yup! you see the different logo here! That's Spotify~! Today I gonna talk about a easy topic. That is, how to install the Spotify in Linux~! Actually there is already a tutorial on there official site, but I still wanna record it. # 1. Add the Spotify repository signing key to be able to verify downloaded packages sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 # 2. Add the Spotify repository echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list # 3. Update list of available packages sudo apt-get update # 4. Install Spotify sudo apt-get install spotify-client Um....ok, I just copy it, XD. see you next time~                                     provide

Custom Command

Image
Hi guys~! Today I got some issue on Ubuntu16.04. Although the Ubuntu is linux base, in ubuntu, we can't use root to login. Or u have to spend time to figure it out. So, the issue I met is that I tried to link serial port by some IDE, such as Qt, but the ttyUSB or ttyS0 ports are set as 550 permission. To use the port correctly u have to use root or sudo, but u can't run the Qt as root directly like Windows, in which u just right clicked and run as Administrator. Things u have to do is : cd /urpath/Qt/Tolls/QtCreator/bin sudo ./qtcreator So... the things I gonna teach u is ... how to write a custom command ~~ LOL, Sorry for tell a long story before the tutorial ahh. First of all, write the command u wanna use in txt or .sh whatever u want command : cd /urpath/Qt/Tolls/QtCreator/bin sudo ./qtcreator A common way to handle this is to use /bin directory, mkdir ~/bin put ur script in the folder mv yourfile ~/bin make sure u can execute it chmo...

Multiboot CentOS & Ubuntu

Image
Hi everybody, these day I tried to install multi os from on my desktop for work. However, the multi boot with Ubuntu and CentoOS will reach to the grub and grub2 conflicted problem. After few days studying and expirement, I finally figure out the way to fix the  conflict. Okay, now let's start. First of all you have to separate your disk to 2 partition, you might not try to install CentOS at first cause it Ubuntu won't detect the exist of the CentOS. Besides, I tried... many time and many ways. It will never make it to fix the Ubuntu grub to boot up the CentOS. So, Install Ubuntu first, I used Ubuntu 16.04 LTS Then install CentOS7 Now you might see the menu of CentOS's grub with centos and ubuntu in the list. However you will receive "can't find command linux & initrd" when you choose Ubuntu. That's because the centos used linuxefi and initrdefi for boot up. You can saw the command by press "E", and you will understand wh...

Linux Proxy setting

Image
Most of company have proxy server and have to route through it for access internet. Though the browser and the system can set proxy by UI, yum and apt need addition setting from the config file. Since CentOS and Ubuntu are both used wildly, I record the step for seeting up proxy config file for future used. Ubuntu 16.16 create a apt.conf file Acquire::http::proxy "http://proxy:port/"; Acquire::https::proxy "https://proxy:port/"; Acquire::ftp::proxy "ftp://proxy:port/"; Acquire::socks::proxy "socks://proxy:port/"; and put it in to the /etc/apt CentOS 7 modified /etc/yum.conf proxy=http://proxy:port and... Done~! This is the very simple tutorial for general situation. If u need more complex setting please google it. Thanks~