Advertisement
Guest User

Linux Mint Beginners Desktop Tutorial

a guest
Sep 16th, 2012
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.78 KB | None | 0 0
  1. Here's a blog entry of what I did when I first setup my Linux Mint desktop machine with a Cinnamon UI that I would spend the rest of my internet career with.
  2.  
  3.  
  4. ::>>BUGS<<::
  5.  
  6. Well... there are a lot of computer manufacturers in the world. Groups like dell, lenovo, acer-msi-asus, alienware, ibuypower, etc... And what operating systems do you think these people test their hardware against? Yep, windows. So each time an disreputable company like, say, Gateway, comes out with a new laptop, they're releasing a solid piece of hardware if you're using windows XP on it for instance. However, they're releasing a dumpy alpha release from the stand point of serious linux users.
  7.  
  8. ::Brightness Control doesn't work in linux mint::
  9. To be fair to gateway, everything else works other than the screen brightness control (the most important control). I believe the problem has more to do with the issues that intel has with integrated graphics cards than it does to do with Gateway...
  10.  
  11. -Problem
  12. Anyway, the problem was that the brightness softkeys change a file in the /proc virtual directory... but to get the actual brightness levels changed, you need to change a special intel file in the /proc directory instead. I lack the savvy to make the softkeys work as intended, but...
  13.  
  14.  
  15. -Solution
  16. The solution for me was to manually set the brightness to my desired value on the terminal (as root!).
  17.  
  18. (set the screen brightness to 19, or 19%)
  19. [code]
  20. $ su
  21. <Input Pass>
  22. $ setpci -s 00:02.0 F4.B=19
  23. [/code]
  24.  
  25.  
  26.  
  27.  
  28. ::>>HOTKEYS<<::
  29. Go to Software Manager and install xbindkeys. Then install xbindkeys-config. launch xbindkeys-config from a terminal window and you should be good to go for configuring the following hotkeys.
  30.  
  31. You'll also need to install 'xautomation' to "send keystorkes" which is helpful for, say, turning your capslock button into an escape key if you aren't using your capslock key very much.
  32.  
  33. recap/ Code behind:
  34. [code]
  35. $ apt-get install xbindkeys xbindkeys-config xautomation
  36.  
  37. $ xbindkeys-config
  38. [/code]
  39.  
  40.  
  41. ::Hotkeys you should install OR have by default.
  42.  
  43. Desktop
  44. Ctrl+Win+d Show desktop (default)
  45. Ctrl+Alt+t Spawn Terminal (default)
  46. Ctrl+Alt+backspace Kill the windows manager if it freezes (default)
  47.  
  48. Ctrl+Alt+e Spawn file explorer
  49.  
  50.  
  51. Web Browsers and Editors
  52. mouse button 6 (scroll left) => Control+Shift+Tab (move tab left in )
  53. mouse button 7 (scroll right) => Control+Tab (move tab right)
  54.  
  55. recap/ Code behind:
  56. (~/.xkeybindsrc)
  57. [code]
  58. ###########################
  59. # xbindkeys configuration #
  60. #keystate_numlock = enable
  61. #keystate_scrolllock = enable
  62. #keystate_capslock = enable
  63. ###########################
  64.  
  65. #Show/Hide desktop
  66. "if xprop -root _NET_SHOWING_DESKTOP|egrep '= 1' ; then wmctrl -k off ; else wmctrl -k on ; fi"
  67. Control+Alt + d
  68.  
  69. #FireFox
  70. "firefox"
  71. m:0x15 + c:25
  72. Control+Shift + w
  73.  
  74. #Nautilus
  75. "nautilus"
  76. m:0x1c + c:26
  77. Control+Alt + e
  78.  
  79. #Tab Left
  80. "xte 'keydown Control_L' 'keydown Shift_L' 'key Tab' 'keyup Shift_L' 'keyup Control_L'"
  81. b:6
  82.  
  83. #Tab Right
  84. "xte 'keydown Control_L' 'key Tab' 'keyup Control_L'"
  85. b:7
  86.  
  87. #
  88. # End of xbindkeys configuration
  89. [/code]
  90.  
  91.  
  92. ref: http://www.linuxquestions.org/questions/linux-software-2/how-to-show-desktop-in-xfce4-601161/
  93.  
  94. ref: http://askubuntu.com/questions/85850/how-to-remap-a-key-combination-to-a-single-key
  95.  
  96.  
  97.  
  98. ::Remap the windows key::
  99.  
  100. I'm starting to get used to ctrl+alt+d rather than Super+d, so I'm personally not using this trick...
  101.  
  102. But a trick, if you want to use xbindkeys to bind, say, windows key + e, then do..
  103.  
  104. #FireFox
  105. "firefox"
  106. m:0x50 + c:26
  107. Mod2+Mod4 + e
  108.  
  109. ...then you can make linux register the key combo by first opening the start menu, and then pressing the key combo... You could also change the way the windows key works by editing the Keyboard Layout -> Layouts -> Options to make the windows key be a hyperkey.
  110.  
  111.  
  112. disable windows key from messing up
  113. ref: http://superuser.com/questions/433724/how-do-i-disable-the-keyboard-shortcut-for-menu-in-linux-mint-13
  114.  
  115.  
  116.  
  117. ::Create Keybindings with built in GUI for Linux Mint::
  118.  
  119. You could also just use the built in feature, but I don't like it because it's unclear where it's dotfiles are stored which complicates migrations. Hit windows key, and type 'keyboard'. Then press enter. You should now be in the Keyboard setting panel. Click the shortcuts tab. This panel allows you to create custom shortcuts. It may also be useful to disable default hotkeys in here, if you'd like to do everything in xbindkeys, but that too makes LinuxMint to LinuxMint migrations more complicated.
  120.  
  121.  
  122.  
  123.  
  124.  
  125. ::>>Browsers<<::
  126.  
  127. -Ctrl+l
  128. Just a little tip for using web browsers, when you want to highlight the search bar, DON'T use the mouse. Linux is keyboard oriented, so they make highlighting with the mouse more difficult I think. Instead type ctrl+l and that will highlight the address bar. This is more efficient because the next thing you will likely do is ctrl+c to copy, or just typing in a search query/url and so your hands will already be at the keyboard.
  129.  
  130. -Ctrl+Shift+y
  131. Open downloads window.
  132.  
  133.  
  134. ::Setup FireFox
  135.  
  136. :Searching
  137. First thing's first, setup FireFox so you can browse. Firefox is installed by default, so Linux Mint get a +1 here. However, Google, the largest search engine on the web isn't sharing ANY of it's revenue with Linux Mint which I find quite contemptable. But because I'm a programmer and a serious web searcher, I have no choice to add google to the search engine bar an bind them to the key 'g'... Perhaps other search engines will become better at searching API documentation and I will be able to switch to them. Or perhaps google will share it's wealth with what seems to be the greatest OS in the world. I suggest using one of the partner search engines to look for how to add the google search engine to FireFox in mint... as a practice, to see if it works well.
  138.  
  139. Don't foget to change the default search engin by going to 'about:config' (hint: keyword.url)
  140.  
  141. :Mouse Gestures
  142. You need mouse gestures immediately! Go to https://addons.mozilla.org/en-US/firefox/addon/all-in-one-gestures/
  143.  
  144. I change...
  145. open new tab: D
  146. Copy tab: DU
  147. Close tab: DR
  148.  
  149. :Tab Mix Plus
  150. You need to get tab mix plus in order to have the tabs open up in a convienient fashion.
  151.  
  152.  
  153. ::Setup Chrome
  154.  
  155. Everyone knows you need more than one web browser to get a good experience on the web. That means you're going to go to google and download their web browser. Chrome is the browser you'll use for just quickly getting to a site you want. You want have your tabs save when you close chrome, that's what Firefox is for. You'll be downloading a .deb file. Simply double click this .deb file and it will walk you through the packages installation.
  156.  
  157. Once the installation is complete, you can get to chrome by hitting the windows key (I know, ironic, isn't it) and typing in 'chrome'.
  158.  
  159.  
  160.  
  161.  
  162.  
  163. ::>>System Stuff<<::
  164.  
  165. ::NaUtilus::
  166. Nautilus is like windows explorer.
  167.  
  168. Related Shortcuts
  169. Ctrl + L Show address bar
  170. Ctrl + H Show/hide hidden files
  171.  
  172.  
  173.  
  174.  
  175.  
  176. ::XBMC::
  177.  
  178. The standard 'Totem' mediaplayer is a fully functional media player that windows would be blessed with if they installed on their systems by default. But it doesn't look completely rad. On the other hand, XBMC does, so let's install that.
  179.  
  180. [code]
  181. $ apt install xbmc
  182. [/code]
  183.  
  184. To use XBMC, you need to log completely out and then when you loging, click the gear icon to login with the XBMC session. This is like replacing your xbox dashboard but for linux, and you aren't replacing it for ever, just until you log back in normally.
  185.  
  186.  
  187.  
  188. ::Ping a windows computer by name (netbios name)::
  189.  
  190. Install dependencies
  191. [code]
  192. $ apt-get install winbind
  193. [/code]
  194.  
  195. (vi /etc/nsswitch.conf)
  196. [code]
  197. hosts: ...bla blah... wins # insert the word "wins"
  198. [/code]
  199.  
  200. ref: https://www.zulius.com/how-to/resolve-windows-netbios-names-from-linux/
  201.  
  202.  
  203.  
  204. ::Connect to a windows file share::
  205.  
  206. Ctrl+Alt+e (if you made that hotkey from above). Then Ctrl+l. Then type:
  207. smb://Windows_box_name/
  208.  
  209. Then just type in the password when prompted. If you're unable to connect, that's probably because you need to do 'apt install winbind' and setup /etc/nsswitch.conf properly. See the section on Ping a windows computer for my help.
  210.  
  211.  
  212.  
  213. ::Startup files::
  214.  
  215. When your linux session first starts up, it finds ~/.xprofile an executes it's contents. It's called x profile, because it's the profile for X, which is the linux GUI base code. You may find this knowlege useful. There's also scripts that get executed when you first login to a bash shell. ~/.profile and ~/.bashrc and ~/.bash_login are some of these files. Also note /etc/profile is a system wide version of these files.
  216.  
  217.  
  218.  
  219.  
  220. ::Putty Style Terminal for Linux Mint::
  221.  
  222. Usage
  223. Copy Text: Simply highlight some text
  224. Paste Text: Middle click
  225.  
  226. The terminal you get when you press Ctrl+alt + T is called "gnome-terminal". It's annoying to have to copy and paste things by using the context menu, and since ctrl+c is bound to "Close Process" in terminals, you would hope that highlighting any text within the terminal would automatically put it into your copy buffer. Well, it does that! But it adds it to it's own special copy buffer, so when you try to right click and paste, it won't paste what you expect. Instead you have to use middle click to paste.
  227.  
  228. ref: sudo apt-get install parcellite
  229.  
  230.  
  231.  
  232.  
  233.  
  234. ::A Windows 7/ OSX Style Dock Panel (Docky)
  235.  
  236. Ok, before I start, let me just say, these panels are truly more efficient if you use your computer on the job (programming, IT, bla, blah). If you work a computer related profession, you likely use suites of applications, and the Dock panel system facilitates this style. Before windows 7, I was an avid "quick list" user, which in windows allows you to arrange shortcut icons right on the task bar. I found it hard to switch to the dock panel, but at this point, I agree that it is far more efficient.
  237.  
  238. Go to Software Manager and search for "Docky". Then just install it. Use the window key to search for docky to load it up manually. It should be setup to automatically load up when the user logs in from now on. Set docky to 'Panel Mode' in the settings to make it most similar to Windows 7.
  239.  
  240. I had trouble getting the highlighted overlay to indicate which app was currently in focus. The fix for me was to download ambience-dark theme and use that. http://gnome-look.org/content/show.php/Ambiance+Docky+Themes+%28Light+%26+Dark%29?content=125005
  241.  
  242. You might want to go into your Cinnamon Settings and move the old task bar to the top and set it to auto hide. You unfortunately don't want to remove it completely because the time is on there, so is the network display and all that luggage.
  243.  
  244. [code]
  245. $ apt-get install docky
  246. [/code]
  247.  
  248.  
  249.  
  250. ::>>ScreenCasting<<::
  251.  
  252. kazam and istanbul and a couple of others does exists too kentos.
  253.  
  254. ::>>IDEs<<::
  255.  
  256. ::Aptana::
  257. The best way to install aptana for Linux Mint is by browsing to apanata's website and downloading the linux version. Then unzip the contents of the download to a folder that's out of the way, but not too far out of the way... (I use ~/bin to store these kinds of files).
  258.  
  259. When you're done extracting the file, you need to run Aptana one time as administrator. After that it will just work.
  260.  
  261. (what I just said above, but in shell commands)
  262. [code]
  263. $ mkdir ~/bin; cd ~/bin
  264. $ wget http://download.aptana.com/studio3/standalone/3.2.2/linux/Aptana_Studio_3_Setup_Linux_x86_64_3.2.2.zip
  265.  
  266. $ unzip Aptana_Studio_3_Setup_Linux_x86_64_3.2.2.zip
  267. $ rm Aptana_Studio_3_Setup_Linux_x86_64_3.2.2.zip # we don't need the zip anymore
  268. [/code]
  269.  
  270.  
  271.  
  272. ::Light weight Editor::
  273.  
  274. I was having trouble finding a good notepad style text editor. My problem was that, in the windows and mac world, you through out the built in editor because it's buggy rubbish. But that isn't how the Linux world works. After closer consideration, I've reached an understanding that gEdit is quite good, although I also do a lot of vim work since I'm mostly on the terminal anyway. I didn't like gedit at first because after I search for some text, I have a habit of hitting escape to clear the search box from the screen... but pressing esc after searching text in gedit is a way of undoing the search --slamming your view back to where you came from. This was very jarring for me, especially when I didn't even know where the view was switching to. Below is a crash course on gEdit, listing off all the feature settings and usages that I find useful.
  275.  
  276. ::gEdit
  277. Ctrl+f search
  278. tab end search
  279. esc undo search
  280. Ctrl+g Find next
  281.  
  282.  
  283. configuration
  284. Edit -> preferences -> View (tab)
  285. Display line numbers (don't worry, we'll change it so it's not ugly)
  286. Highlight matching brackets
  287.  
  288. Edit -> preferences -> Editor (tab)
  289. Insert spaces instead of tabs
  290. Enable automatic indentation
  291.  
  292. Edit -> preferences -> Font & Colors (tab)
  293. Color Scheme: Cobalt or Oblivion
  294.  
  295. Edit -> preferences -> Plugins (tab)
  296. Change Case
  297.  
  298. Tools -> Highlight Misspelled Words
  299.  
  300.  
  301. Those are all the cool features. Of course there's plugins you can download too if you'd like more features! I plan to look into it more when I have some freetime. I'd love to have a button in this editor that just runs the script and displays it's outputs in a small console window.
  302.  
  303. ref: http://rbjl.net/58-rubybuntu-6-gedit-3-wtf-set-it-up-for-ruby-web-development
  304.  
  305.  
  306. ::>>Programming Environment<<::
  307.  
  308. ::Git::
  309. You need to install this, no matter what language you're developing in.
  310.  
  311. [code]
  312. $ apt-get install git-core
  313. [/code]
  314.  
  315.  
  316. ::Ruby::
  317. To install ruby, we'll use rvm because that's the standard rubiest way.
  318.  
  319. [code]
  320. $ apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf
  321. $ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
  322. [/code]
  323.  
  324. After that, you should be able to close your terminal, and then reopen it, with access to rvm
  325. [code]
  326. $ rvm -v
  327. rvm 1.15.8 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
  328. [/code]
  329.  
  330. Now you need to install some versions of ruby. Atm, ruby 1.9.3 exists, so I'll just go ahead and install that.
  331. [code]
  332. $ rvm install 1.9.3 # this will take a while...
  333. [/code]
  334.  
  335. Before rvm will work in gnome-terminal, you'll need to apply this fix...
  336.  
  337. https://rvm.io/integration/gnome-terminal/
  338.  
  339. After you've done that, you should be able to use ruby...
  340. [code]
  341. # make this version of ruby active by default
  342. $ rvm --default 1.9.3
  343.  
  344. # Manually change to version 1.9.3
  345. $ rvm use 1.9.3
  346.  
  347. # verify which version of ruby you're using
  348. $ ruby -v
  349. ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
  350. [/code]
  351.  
  352. You may also need to put the below line into your bashrc and possible source it in your .bash_login file. I did this when I seemed to have encountered a bug.
  353. (~/.bashrc)
  354. [code]
  355. [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
  356. [/code]
  357.  
  358. Fun! Want to do a hello world?
  359.  
  360. (~/dev/ruby/hello/main.rb)
  361. [code]
  362. puts "Hello world of Ruby!"
  363. [/code]
  364.  
  365. Then ruby it, you should see:
  366. [code]
  367. $ ruby ~/dev/ruby/hello/main.rb
  368. Hello world of Ruby!
  369. [/code]
  370.  
  371.  
  372.  
  373. ::Mono::
  374. Bla
  375.  
  376. ::Java::
  377. Bla
  378.  
  379.  
  380.  
  381.  
  382. ::>>Social<<::
  383.  
  384. ::Voice over IP::
  385. You need to install Jitsi if you'd like to have conversations with people where you don't want intercepts to take place (electronic eves droppers).
  386.  
  387. Browse to https://download.jitsi.org/jitsi/debian/ and download the latest stable release. Once it's downloaded, double click the .deb package to install it.
  388.  
  389. Now...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement