Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://www.bictor.com/feed/

  1. <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
  2. xmlns:content="http://purl.org/rss/1.0/modules/content/"
  3. xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  4. xmlns:dc="http://purl.org/dc/elements/1.1/"
  5. xmlns:atom="http://www.w3.org/2005/Atom"
  6. xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  7. xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  8. xmlns:georss="http://www.georss.org/georss"
  9. xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
  10. >
  11.  
  12. <channel>
  13. <title>Bictor Tips</title>
  14. <atom:link href="http://www.bictor.com/feed/" rel="self" type="application/rss+xml" />
  15. <link>http://www.bictor.com</link>
  16. <description>Your Help In Digital World</description>
  17. <lastBuildDate>Wed, 14 Feb 2024 08:06:39 +0000</lastBuildDate>
  18. <language>en</language>
  19. <sy:updatePeriod>
  20. hourly </sy:updatePeriod>
  21. <sy:updateFrequency>
  22. 1 </sy:updateFrequency>
  23. <generator>https://wordpress.org/?v=6.2.5</generator>
  24.  
  25. <image>
  26. <url>https://i0.wp.com/www.bictor.com/wp-content/uploads/2018/05/cropped-CompleteLogo_small.jpg?fit=32%2C32</url>
  27. <title>Bictor Tips</title>
  28. <link>http://www.bictor.com</link>
  29. <width>32</width>
  30. <height>32</height>
  31. </image>
  32. <site xmlns="com-wordpress:feed-additions:1">64334160</site> <item>
  33. <title>Ubuntu bug affecting Firefox Chromium and other Keyboard Issues</title>
  34. <link>http://www.bictor.com/2023/12/17/ubuntu-bug-affecting-firefox-chromium-and-other-keyboard-issues/</link>
  35. <comments>http://www.bictor.com/2023/12/17/ubuntu-bug-affecting-firefox-chromium-and-other-keyboard-issues/#respond</comments>
  36. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  37. <pubDate>Sun, 17 Dec 2023 21:24:39 +0000</pubDate>
  38. <category><![CDATA[Linux]]></category>
  39. <guid isPermaLink="false">https://www.bictor.com/?p=478</guid>
  40.  
  41. <description><![CDATA[The main problem was AppArmor not giving permission to connect to ibus in the root account Workaround was to change the input method from ibus to none im-config -n none]]></description>
  42. <content:encoded><![CDATA[
  43. <p>The main problem was AppArmor not giving permission to connect to ibus in the root account</p>
  44.  
  45.  
  46.  
  47. <p>Workaround was to change the input method from ibus to none</p>
  48.  
  49.  
  50.  
  51. <p><code>im-config -n none</code></p>
  52.  
  53.  
  54.  
  55. <p></p>
  56. ]]></content:encoded>
  57. <wfw:commentRss>http://www.bictor.com/2023/12/17/ubuntu-bug-affecting-firefox-chromium-and-other-keyboard-issues/feed/</wfw:commentRss>
  58. <slash:comments>0</slash:comments>
  59. <post-id xmlns="com-wordpress:feed-additions:1">478</post-id> </item>
  60. <item>
  61. <title>Ubuntu 22.04 LAMP Installation</title>
  62. <link>http://www.bictor.com/2023/07/09/ubuntu-22-04-lamp-installation/</link>
  63. <comments>http://www.bictor.com/2023/07/09/ubuntu-22-04-lamp-installation/#respond</comments>
  64. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  65. <pubDate>Sun, 09 Jul 2023 16:43:34 +0000</pubDate>
  66. <category><![CDATA[Linux]]></category>
  67. <guid isPermaLink="false">http://www.bictor.com/?p=468</guid>
  68.  
  69. <description><![CDATA[To install the LAMP stack on Ubuntu 22.04 LTS, follow these steps.]]></description>
  70. <content:encoded><![CDATA[
  71. <p>To install the LAMP stack on Ubuntu 22.04 LTS, follow these steps.</p>
  72.  
  73.  
  74.  
  75. <ol>
  76. <li>Using <code>apt</code>, update the Ubuntu packages:<br><code>sudo apt update <strong>&amp;&amp;</strong> sudo apt upgrade</code><br></li>
  77.  
  78.  
  79.  
  80. <li>Install the Apache web server using <br><code>apt</code>:<code>sudo apt install apache2</code><br></li>
  81.  
  82.  
  83.  
  84. <li>Install the MySQL web server:<br><code>sudo apt install mysql-server</code><br></li>
  85.  
  86.  
  87.  
  88. <li>Install PHP, along with additional PHP modules for Apache and MySQL:<br><code>sudo apt install php libapache2-mod-php php-mysql</code><br></li>
  89.  
  90.  
  91.  
  92. <li><strong>(Optional)</strong> Install the following commonly-used PHP modules.<br><code>sudo apt install php-curl php-json php-cgi</code><br></li>
  93.  
  94.  
  95.  
  96. <li><strong>(Optional)</strong> To host a WordPress site on the server, install the following PHP components:<br><code>sudo apt install php-curl php-gd php-mbstring php-xml php-xmlrpc</code><br></li>
  97. </ol>
  98. ]]></content:encoded>
  99. <wfw:commentRss>http://www.bictor.com/2023/07/09/ubuntu-22-04-lamp-installation/feed/</wfw:commentRss>
  100. <slash:comments>0</slash:comments>
  101. <post-id xmlns="com-wordpress:feed-additions:1">468</post-id> </item>
  102. <item>
  103. <title>Ubuntu 22.04 Modify Open File Limits</title>
  104. <link>http://www.bictor.com/2022/07/17/ubuntu-16-04-modify-open-file-limits/</link>
  105. <comments>http://www.bictor.com/2022/07/17/ubuntu-16-04-modify-open-file-limits/#respond</comments>
  106. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  107. <pubDate>Sun, 17 Jul 2022 15:19:52 +0000</pubDate>
  108. <category><![CDATA[Linux]]></category>
  109. <guid isPermaLink="false">http://www.bictor.com/?p=452</guid>
  110.  
  111. <description><![CDATA[To check current limits Edit /etc/security/limits.conf &#8211; Add the following lines, also remember like root is a username, you should add all the usernames on which you wish to increase the limit Edit /etc/pam.d/common-session &#8211; Add the following line Edit]]></description>
  112. <content:encoded><![CDATA[
  113. <p>To check current limits </p>
  114.  
  115.  
  116.  
  117. <pre class="wp-block-code"><code>ulimit -a</code></pre>
  118.  
  119.  
  120.  
  121. <p>Edit /etc/security/limits.conf &#8211; Add the following lines, also remember like root is a username, you should add all the usernames on which you wish to increase the limit</p>
  122.  
  123.  
  124.  
  125. <pre class="wp-block-code"><code>* soft nproc 9999999
  126. * hard nproc 9999999
  127. * soft nofile 9999999
  128. * hard nofile 9999999
  129. root soft nproc 9999999
  130. root hard nproc 9999999
  131. root soft nofile 9999999
  132. root hard nofile 9999999</code></pre>
  133.  
  134.  
  135.  
  136. <p>Edit /etc/pam.d/common-session &#8211; Add the following line</p>
  137.  
  138.  
  139.  
  140. <pre class="wp-block-code"><code>session required pam_limits.so</code></pre>
  141.  
  142.  
  143.  
  144. <p>Edit the following file&nbsp;<code>/etc/systemd/user.conf</code>: &#8211; Add the following line</p>
  145.  
  146.  
  147.  
  148. <pre class="wp-block-code"><code>DefaultLimitNOFILE=9999999</code></pre>
  149.  
  150.  
  151.  
  152. <p>Edit /etc/sysctl.conf &#8211; Add the following line</p>
  153.  
  154.  
  155.  
  156. <pre class="wp-block-code"><code>fs.file-max=9999999
  157. vm.max_map_count=9999999
  158. </code></pre>
  159.  
  160.  
  161.  
  162. <p>Edit individual service file like for MongoDB Database &#8211; Edit /lib/systemd/system/mongod.service</p>
  163.  
  164.  
  165.  
  166. <pre class="wp-block-code"><code>&#91;Unit]
  167. Description=MongoDB Database Server
  168. Documentation=https://docs.mongodb.org/manual
  169. After=network.target
  170.  
  171. &#91;Service]
  172. User=mongodb
  173. Group=mongodb
  174. EnvironmentFile=-/etc/default/mongod
  175. ExecStart=/usr/bin/mongod --config /etc/mongod.conf
  176. PIDFile=/var/run/mongodb/mongod.pid
  177. # file size
  178. LimitFSIZE=infinity
  179. # cpu time
  180. LimitCPU=infinity
  181. # virtual memory size
  182. LimitAS=infinity
  183. # open files
  184. LimitNOFILE=9999999
  185. # processes/threads
  186. LimitNPROC=9999999
  187. # locked memory
  188. LimitMEMLOCK=infinity
  189. # total threads (user+kernel)
  190. TasksMax=infinity
  191. TasksAccounting=false
  192.  
  193. # Recommended limits for for mongod as specified in
  194. # http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings
  195.  
  196. &#91;Install]
  197. WantedBy=multi-user.target</code></pre>
  198.  
  199.  
  200.  
  201. <p>Run the following command in terminal</p>
  202.  
  203.  
  204.  
  205. <pre class="wp-block-code"><code>systemctl daemon-reload</code></pre>
  206.  
  207.  
  208.  
  209. <p>Done</p>
  210.  
  211.  
  212.  
  213. <p></p>
  214. ]]></content:encoded>
  215. <wfw:commentRss>http://www.bictor.com/2022/07/17/ubuntu-16-04-modify-open-file-limits/feed/</wfw:commentRss>
  216. <slash:comments>0</slash:comments>
  217. <post-id xmlns="com-wordpress:feed-additions:1">452</post-id> </item>
  218. <item>
  219. <title>MacBook Pro 2009 &#8211; Ubuntu 20.04 Installation</title>
  220. <link>http://www.bictor.com/2021/06/16/macbook-pro-2009-ubuntu-20-04-installation/</link>
  221. <comments>http://www.bictor.com/2021/06/16/macbook-pro-2009-ubuntu-20-04-installation/#respond</comments>
  222. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  223. <pubDate>Wed, 16 Jun 2021 08:45:20 +0000</pubDate>
  224. <category><![CDATA[Linux]]></category>
  225. <guid isPermaLink="false">http://www.bictor.com/?p=421</guid>
  226.  
  227. <description><![CDATA[Download Ubuntu for Desktop (20.04) Burn on Pen Drive using Rufus (UEFI mode) Install normally as per the instructions provided on the screen Install full kde using sudo apt-get install kde-full sudo lshw -businfo -class bridge -class display Bus info]]></description>
  228. <content:encoded><![CDATA[
  229. <ol><li>Download Ubuntu for Desktop (20.04)</li><li>Burn on Pen Drive using Rufus (UEFI mode)</li><li>Install normally as per the instructions provided on the screen</li><li>Install full kde using</li></ol>
  230.  
  231.  
  232.  
  233. <p><code>sudo apt-get install kde-full</code></p>
  234.  
  235.  
  236.  
  237. <p>sudo lshw -businfo -class bridge -class display</p>
  238.  
  239.  
  240.  
  241. <p style="font-size:11px">Bus info          Device      Class          Description<br>========================================================<br>pci@0000:00:00.0              bridge         MCP79 Host Bridge<br>pci@0000:00:03.0              bridge         MCP79 LPC Bridge<br>pci@0000:00:09.0              bridge         MCP79 PCI Bridge<br>pci@0000:00:0c.0              bridge         MCP79 PCI Express Bridge<br><strong>pci@0000:00:10.0              bridge         MCP79 PCI Express Bridge<br>pci@0000:03:00.0              display        C79 [GeForce 9400M]</strong><br>pci@0000:00:15.0              bridge         MCP79 PCI Express Bridge<br>pci@0000:00:16.0              bridge         MCP79 PCI Express Bridge<br><br>Note: The addresses are of the display entry and PCI-E just before the display entry<br>It might vary and you might need to find the correct one</p>
  242.  
  243.  
  244.  
  245. <p>Now create a new file 01_enable_vga.conf</p>
  246.  
  247.  
  248.  
  249. <p class="has-small-font-size"><strong>Contents of the file created above : </strong><br>sudo setpci -s &#8220;00:10.0&#8221; 3e.b=8<br>sudo setpci -s &#8220;03:00.0&#8221; 04.b=7</p>
  250.  
  251.  
  252.  
  253. <p>sudo chmod 755 01_enable_vga.conf<br>sudo mv 01_enable_vga.conf /etc/grub.d<br>sudo update-grub</p>
  254.  
  255.  
  256.  
  257. <p>Reboot and Check</p>
  258. ]]></content:encoded>
  259. <wfw:commentRss>http://www.bictor.com/2021/06/16/macbook-pro-2009-ubuntu-20-04-installation/feed/</wfw:commentRss>
  260. <slash:comments>0</slash:comments>
  261. <post-id xmlns="com-wordpress:feed-additions:1">421</post-id> </item>
  262. <item>
  263. <title>Fix Old MacBook Windows 10 Reboot Issue</title>
  264. <link>http://www.bictor.com/2020/06/07/fix-old-macbook-windows-10-reboot-issue/</link>
  265. <comments>http://www.bictor.com/2020/06/07/fix-old-macbook-windows-10-reboot-issue/#comments</comments>
  266. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  267. <pubDate>Sun, 07 Jun 2020 21:46:49 +0000</pubDate>
  268. <category><![CDATA[Linux]]></category>
  269. <guid isPermaLink="false">http://www.bictor.com/?p=383</guid>
  270.  
  271. <description><![CDATA[I have MacBook 5,2 which i needed with Windows 10 as new MacOS is no further supported on it and i didn&#8217;t wanted to waste some good hardware engineering by Apple in it 🙂 However the installation of Windows 10]]></description>
  272. <content:encoded><![CDATA[
  273. <p>I have MacBook 5,2 which i needed with Windows 10 as new MacOS is no further supported on it and i didn&#8217;t wanted to waste some good hardware engineering by Apple in it <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
  274.  
  275.  
  276.  
  277. <p>However the installation of Windows 10 was pretty straight forward &#8211; I made the installation disk with Rufus (with UEFI option) and put it in the MacBook and installed everything on the hardware. After initial installation I copied bootcamp drivers which i saved from Windows 7 disk and installed  them also on the notebook which made almost all the functionality come alive on the MacBook. Along with those drivers Nvidia Display drivers were also intalled.</p>
  278.  
  279.  
  280.  
  281. <p>Initially working without reboot everything was working fine but as soon it got rebooted it got stuck in the reboot loop .. with Windows Automatic Repair showing again and again. Finally i started researching on the problem and found that the problem was in the UEFI</p>
  282.  
  283.  
  284.  
  285. <p><code>While Windows 10 no longer expects an EFI system to have VGA-compatible video, Nvidia drivers apparently still do and crash if they don’t detect it. The above commands are supposed to enable the VGA support in the graphics card."</code></p>
  286.  
  287.  
  288.  
  289. <p>In order to fix the above issue, we need to somehow enable this in the UEFI firmware and i used the below technique to achieve it.</p>
  290.  
  291.  
  292.  
  293. <ul><li>Boot your windows in Safe mode With Networking</li><li>Open DiskPart utility of windows</li></ul>
  294.  
  295.  
  296.  
  297. <p><code>diskpart<br>select disk 0<br>select partition 2<br>assign letter=f</code></p>
  298.  
  299.  
  300.  
  301. <p>In the above commands we assume that Disk 0 is where Windows are installed, Partition 2 is your boot partition made by Windows</p>
  302.  
  303.  
  304.  
  305. <ul><li>Download Explorer++ from the net, its free &#8211;<a href="https://explorerplusplus.com/">https://explorerplusplus.com/</a></li><li>Open explorer++</li><li>Navigate to folder F:\EFI\Microsoft\Boot</li><li>Rename the original file bootmgfw.efi to bootmgfw_o.efi</li><li>Download the EFI shell from <a href="http://www.softcruise.com/shell_full.efi">http://www.softcruise.com/shell_full.efi</a></li><li>Copy shell_full.efi to F:\EFI\Microsoft\Boot</li><li>Make a new file by the name startup.nsh in the same folder</li><li>Write the following lines in it</li></ul>
  306.  
  307.  
  308.  
  309. <p><code>mm 0010003E 1 ;PCI :8<br>mm 03000004 1 ;PCI :7<br>fs0:\EFI\Microsoft\Boot\bootmgfw_o.efi</code></p>
  310.  
  311.  
  312.  
  313. <p>Now reboot your computer and it should boot without any trouble what-so-ever</p>
  314.  
  315.  
  316.  
  317. <blockquote class="wp-block-quote"><p><strong><em>Note:</em></strong><br>Registers on your MacBook might be different from<br>mm 0010003E 1 ;PCI :8<br>mm 03000004 1 ;PCI :7<br><br>In order to identify the right registers you can make use of the following commands</p><p>03 00 00 is Display VGA<br>00 10 00 is Bridge Control<br><br>To find out the register value through efi shell</p><p>Shell> pci -b<br>Shell> pic -i 00 10 00 -b<br>Shell> mm 0001003E -PCI 8<br>Shell> pci -i 03 00 00 -b<br>Shell> mm 03000004 -PCI 7</p><p>As I found out in another older mac the VGA controller was with id 02 instead of 03, so your&#8217;s might differ</p></blockquote>
  318.  
  319.  
  320.  
  321. <p><code><br></code></p>
  322. ]]></content:encoded>
  323. <wfw:commentRss>http://www.bictor.com/2020/06/07/fix-old-macbook-windows-10-reboot-issue/feed/</wfw:commentRss>
  324. <slash:comments>3</slash:comments>
  325. <post-id xmlns="com-wordpress:feed-additions:1">383</post-id> </item>
  326. <item>
  327. <title>Running VLC in Ubuntu as root</title>
  328. <link>http://www.bictor.com/2020/05/24/running-vlc-in-ubuntu-as-root/</link>
  329. <comments>http://www.bictor.com/2020/05/24/running-vlc-in-ubuntu-as-root/#respond</comments>
  330. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  331. <pubDate>Sun, 24 May 2020 10:57:18 +0000</pubDate>
  332. <category><![CDATA[Linux]]></category>
  333. <guid isPermaLink="false">http://www.bictor.com/?p=374</guid>
  334.  
  335. <description><![CDATA[Run the&#160;sed command&#160;below to make changes in the VLC binary file, it will replace the&#160;geteuid&#160;variable (which determines the effective user ID of the calling process) with&#160;getppid&#160;(which will determine the parent process ID of the calling process). In this command, ‘s/geteuid/getppid/‘]]></description>
  336. <content:encoded><![CDATA[
  337. <p>Run the&nbsp;<a href="https://www.tecmint.com/linux-sed-command-tips-tricks/" target="_blank" rel="noreferrer noopener">sed command</a>&nbsp;below to make changes in the VLC binary file, it will replace the&nbsp;<strong>geteuid</strong>&nbsp;variable (which determines the effective user ID of the calling process) with&nbsp;<strong>getppid</strong>&nbsp;(which will determine the parent process ID of the calling process).</p>
  338.  
  339.  
  340.  
  341. <p>In this command, ‘<strong>s/geteuid/getppid/</strong>‘ (<strong>regexp=geteuid, replacement=getppid</strong>) does the magic.</p>
  342.  
  343.  
  344.  
  345. <pre class="wp-block-preformatted">$ sudo sed -i 's/geteuid/getppid/' /usr/bin/vlc</pre>
  346. ]]></content:encoded>
  347. <wfw:commentRss>http://www.bictor.com/2020/05/24/running-vlc-in-ubuntu-as-root/feed/</wfw:commentRss>
  348. <slash:comments>0</slash:comments>
  349. <post-id xmlns="com-wordpress:feed-additions:1">374</post-id> </item>
  350. <item>
  351. <title>Enable root user in Ubuntu 20.04</title>
  352. <link>http://www.bictor.com/2020/04/26/enable-root-user-in-ubuntu-20-04/</link>
  353. <comments>http://www.bictor.com/2020/04/26/enable-root-user-in-ubuntu-20-04/#respond</comments>
  354. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  355. <pubDate>Sun, 26 Apr 2020 13:41:55 +0000</pubDate>
  356. <category><![CDATA[Linux]]></category>
  357. <guid isPermaLink="false">http://www.bictor.com/?p=368</guid>
  358.  
  359. <description><![CDATA[Step 1: Login into your account and open terminal Step 2: Type the following command to setup password for root account sudo passwd root Step 3: Open file /etc/pam.d/gdm-password sudo nano /etc/pam.d/gdm-password Step 4: Comment out the following line by]]></description>
  360. <content:encoded><![CDATA[
  361. <p>Step 1: Login into your account and open terminal</p>
  362.  
  363.  
  364.  
  365. <p>Step 2: Type the following command to setup password for root account</p>
  366.  
  367.  
  368.  
  369. <pre class="wp-block-preformatted">sudo passwd root</pre>
  370.  
  371.  
  372.  
  373. <p>Step 3: Open file /etc/pam.d/gdm-password</p>
  374.  
  375.  
  376.  
  377. <pre class="wp-block-preformatted">sudo nano /etc/pam.d/gdm-password</pre>
  378.  
  379.  
  380.  
  381. <p>Step 4: Comment out the following line by placing # infront of it</p>
  382.  
  383.  
  384.  
  385. <pre class="wp-block-preformatted">#auth    required    pam_succeed_if.so user != root quiet_success</pre>
  386.  
  387.  
  388.  
  389. <p>Step 5: sudo gedit<strong> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf</strong></p>
  390.  
  391.  
  392.  
  393. <p>Step 6: At the end of the file append <strong>greeter-show-manual–login = true</strong></p>
  394.  
  395.  
  396.  
  397. <p>Step 7: Reboot the server</p>
  398. ]]></content:encoded>
  399. <wfw:commentRss>http://www.bictor.com/2020/04/26/enable-root-user-in-ubuntu-20-04/feed/</wfw:commentRss>
  400. <slash:comments>0</slash:comments>
  401. <post-id xmlns="com-wordpress:feed-additions:1">368</post-id> </item>
  402. <item>
  403. <title>Enable root user in Ubuntu 16.04</title>
  404. <link>http://www.bictor.com/2020/04/26/enable-root-user-in-ubuntu-16-04/</link>
  405. <comments>http://www.bictor.com/2020/04/26/enable-root-user-in-ubuntu-16-04/#respond</comments>
  406. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  407. <pubDate>Sun, 26 Apr 2020 13:30:35 +0000</pubDate>
  408. <category><![CDATA[Linux]]></category>
  409. <guid isPermaLink="false">http://www.bictor.com/?p=364</guid>
  410.  
  411. <description><![CDATA[By default root user account is disabled for login in Ubuntu. Steps mentioned below will allow you to enable the root user and login as root on the OS. Login to your account and open Terminal sudo passwd root Type]]></description>
  412. <content:encoded><![CDATA[
  413. <p>By default root user account is disabled for login in Ubuntu. Steps mentioned below will allow you to enable the root user and login as root on the OS.</p>
  414.  
  415.  
  416.  
  417. <ol><li>Login to your account and open Terminal</li><li>sudo passwd root</li><li>Type in the new password for UNIX</li><li>sudo gedit<strong> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf</strong></li><li>At the end of the file append <strong>greeter-show-manual–login = true</strong></li></ol>
  418.  
  419.  
  420.  
  421. <p>That’s all, now reboot the system and you can login to root account using manual login.</p>
  422. ]]></content:encoded>
  423. <wfw:commentRss>http://www.bictor.com/2020/04/26/enable-root-user-in-ubuntu-16-04/feed/</wfw:commentRss>
  424. <slash:comments>0</slash:comments>
  425. <post-id xmlns="com-wordpress:feed-additions:1">364</post-id> </item>
  426. <item>
  427. <title>MySQL on Ubuntu 18.04</title>
  428. <link>http://www.bictor.com/2020/04/24/mysql-on-ubuntu-18-04/</link>
  429. <comments>http://www.bictor.com/2020/04/24/mysql-on-ubuntu-18-04/#respond</comments>
  430. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  431. <pubDate>Fri, 24 Apr 2020 12:58:31 +0000</pubDate>
  432. <category><![CDATA[Linux]]></category>
  433. <guid isPermaLink="false">http://www.bictor.com/?p=362</guid>
  434.  
  435. <description><![CDATA[Introduction MySQL&#160;is an open-source database management system, commonly installed as part of the popular&#160;LAMP&#160;(Linux, Apache, MySQL, PHP/Python/Perl) stack. It uses a relational database and SQL (Structured Query Language) to manage its data. The short version of the installation is simple:]]></description>
  436. <content:encoded><![CDATA[
  437. <h3 class="wp-block-heading" id="introduction">Introduction</h3>
  438.  
  439.  
  440.  
  441. <p><a href="https://www.mysql.com/">MySQL</a>&nbsp;is an open-source database management system, commonly installed as part of the popular&nbsp;<a href="https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04">LAMP</a>&nbsp;(Linux, Apache, MySQL, PHP/Python/Perl) stack. It uses a relational database and SQL (Structured Query Language) to manage its data.</p>
  442.  
  443.  
  444.  
  445. <p>The short version of the installation is simple: update your package index, install the&nbsp;<code>mysql-server</code>&nbsp;package, and then run the included security script.</p>
  446.  
  447.  
  448.  
  449. <pre class="wp-block-code"><code>sudo apt update
  450. sudo apt install mysql-server
  451. sudo mysql_secure_installation
  452. </code></pre>
  453.  
  454.  
  455.  
  456. <p>This tutorial will explain how to install MySQL version 5.7 on an Ubuntu 18.04 server. However, if you’re looking to update an existing MySQL installation to version 5.7, you can read&nbsp;<a href="https://www.digitalocean.com/community/tutorials/how-to-prepare-for-your-mysql-5-7-upgrade">this MySQL 5.7 update guide</a>&nbsp;instead.</p>
  457.  
  458.  
  459.  
  460. <h2 class="wp-block-heading" id="prerequisites">Prerequisites</h2>
  461.  
  462.  
  463.  
  464. <p>To follow this tutorial, you will need:</p>
  465.  
  466.  
  467.  
  468. <ul><li>One Ubuntu 18.04 server set up by following&nbsp;<a href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04">this initial server setup guide</a>, including a non-<strong>root</strong>&nbsp;user with&nbsp;<code>sudo</code>&nbsp;privileges and a firewall.</li></ul>
  469.  
  470.  
  471.  
  472. <h2 class="wp-block-heading" id="step-1-—-installing-mysql">Step 1 — Installing MySQL</h2>
  473.  
  474.  
  475.  
  476. <p>On Ubuntu 18.04, only the latest version of MySQL is included in the APT package repository by default. At the time of writing, that’s MySQL 5.7</p>
  477.  
  478.  
  479.  
  480. <p>To install it, update the package index on your server with&nbsp;<code>apt</code>:</p>
  481.  
  482.  
  483.  
  484. <pre class="wp-block-code"><code>sudo apt update
  485. </code></pre>
  486.  
  487.  
  488.  
  489. <p>Then install the default package:</p>
  490.  
  491.  
  492.  
  493. <pre class="wp-block-code"><code>sudo apt install mysql-server
  494. </code></pre>
  495.  
  496.  
  497.  
  498. <p>This will install MySQL, but will not prompt you to set a password or make any other configuration changes. Because this leaves your installation of MySQL insecure, we will address this next.</p>
  499.  
  500.  
  501.  
  502. <h2 class="wp-block-heading" id="step-2-—-configuring-mysql">Step 2 — Configuring MySQL</h2>
  503.  
  504.  
  505.  
  506. <p>For fresh installations, you’ll want to run the included security script. This changes some of the less secure default options for things like remote root logins and sample users. On older versions of MySQL, you needed to initialize the data directory manually as well, but this is done automatically now.</p>
  507.  
  508.  
  509.  
  510. <p>Run the security script:</p>
  511.  
  512.  
  513.  
  514. <pre class="wp-block-code"><code>sudo mysql_secure_installation
  515. </code></pre>
  516.  
  517.  
  518.  
  519. <p>This will take you through a series of prompts where you can make some changes to your MySQL installation’s security options. The first prompt will ask whether you’d like to set up the Validate Password Plugin, which can be used to test the strength of your MySQL password. Regardless of your choice, the next prompt will be to set a password for the MySQL&nbsp;<strong>root</strong>&nbsp;user. Enter and then confirm a secure password of your choice.</p>
  520.  
  521.  
  522.  
  523. <p>From there, you can press&nbsp;<code>Y</code>&nbsp;and then&nbsp;<code>ENTER</code>&nbsp;to accept the defaults for all the subsequent questions. This will remove some anonymous users and the test database, disable remote root logins, and load these new rules so that MySQL immediately respects the changes you have made.</p>
  524.  
  525.  
  526.  
  527. <p>To initialize the MySQL data directory, you would use&nbsp;<code>mysql_install_db</code>&nbsp;for versions before 5.7.6, and&nbsp;<code>mysqld --initialize</code>&nbsp;for 5.7.6 and later. However, if you installed MySQL from the Debian distribution, as described in Step 1, the data directory was initialized automatically; you don’t have to do anything. If you try running the command anyway, you’ll see the following error:Output</p>
  528.  
  529.  
  530.  
  531. <pre class="wp-block-code"><code>mysqld: Can't create directory '/var/lib/mysql/' (Errcode: 17 - File exists)
  532. . . .
  533. 2018-04-23T13:48:00.572066Z 0 &#91;ERROR] Aborting
  534. </code></pre>
  535.  
  536.  
  537.  
  538. <p>Note that even though you’ve set a password for the&nbsp;<strong>root</strong>&nbsp;MySQL user, this user is not configured to authenticate with a password when connecting to the MySQL shell. If you’d like, you can adjust this setting by following Step 3.</p>
  539.  
  540.  
  541.  
  542. <h2 class="wp-block-heading" id="step-3-—-optional-adjusting-user-authentication-and-privileges">Step 3 — (Optional) Adjusting User Authentication and Privileges</h2>
  543.  
  544.  
  545.  
  546. <p>In Ubuntu systems running MySQL 5.7 (and later versions), the&nbsp;<strong>root</strong>&nbsp;MySQL user is set to authenticate using the&nbsp;<code>auth_socket</code>&nbsp;plugin by default rather than with a password. This allows for some greater security and usability in many cases, but it can also complicate things when you need to allow an external program (e.g., phpMyAdmin) to access the user.</p>
  547.  
  548.  
  549.  
  550. <p>In order to use a password to connect to MySQL as&nbsp;<strong>root</strong>, you will need to switch its authentication method from&nbsp;<code>auth_socket</code>&nbsp;to&nbsp;<code>mysql_native_password</code>. To do this, open up the MySQL prompt from your terminal:</p>
  551.  
  552.  
  553.  
  554. <pre class="wp-block-code"><code>sudo mysql
  555. </code></pre>
  556.  
  557.  
  558.  
  559. <p>Next, check which authentication method each of your MySQL user accounts use with the following command:</p>
  560.  
  561.  
  562.  
  563. <pre class="wp-block-code"><code>SELECT user,authentication_string,plugin,host FROM mysql.user;
  564. </code></pre>
  565.  
  566.  
  567.  
  568. <pre class="wp-block-code"><code>Output+------------------+-------------------------------------------+-----------------------+-----------+
  569. | user             | authentication_string                     | plugin                | host      |
  570. +------------------+-------------------------------------------+-----------------------+-----------+
  571. | root             |                                           | auth_socket           | localhost |
  572. | mysql.session    | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |
  573. | mysql.sys        | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |
  574. | debian-sys-maint | *CC744277A401A7D25BE1CA89AFF17BF607F876FF | mysql_native_password | localhost |
  575. +------------------+-------------------------------------------+-----------------------+-----------+
  576. 4 rows in set (0.00 sec)
  577. </code></pre>
  578.  
  579.  
  580.  
  581. <p>In this example, you can see that the&nbsp;<strong>root</strong>&nbsp;user does in fact authenticate using the&nbsp;<code>auth_socket</code>&nbsp;plugin. To configure the&nbsp;<strong>root</strong>&nbsp;account to authenticate with a password, run the following&nbsp;<code>ALTER USER</code>&nbsp;command. Be sure to change&nbsp;<code>password</code>&nbsp;to a strong password of your choosing, and note that this command will change the&nbsp;<strong>root</strong>&nbsp;password you set in Step 2:</p>
  582.  
  583.  
  584.  
  585. <pre class="wp-block-code"><code>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
  586. </code></pre>
  587.  
  588.  
  589.  
  590. <p>Then, run&nbsp;<code>FLUSH PRIVILEGES</code>&nbsp;which tells the server to reload the grant tables and put your new changes into effect:</p>
  591.  
  592.  
  593.  
  594. <pre class="wp-block-code"><code>FLUSH PRIVILEGES;
  595. </code></pre>
  596.  
  597.  
  598.  
  599. <p>Check the authentication methods employed by each of your users again to confirm that&nbsp;<strong>root</strong>&nbsp;no longer authenticates using the&nbsp;<code>auth_socket</code>&nbsp;plugin:</p>
  600.  
  601.  
  602.  
  603. <pre class="wp-block-code"><code>SELECT user,authentication_string,plugin,host FROM mysql.user;
  604. </code></pre>
  605.  
  606.  
  607.  
  608. <pre class="wp-block-code"><code>Output+------------------+-------------------------------------------+-----------------------+-----------+
  609. | user             | authentication_string                     | plugin                | host      |
  610. +------------------+-------------------------------------------+-----------------------+-----------+
  611. | root             | *3636DACC8616D997782ADD0839F92C1571D6D78F | mysql_native_password | localhost |
  612. | mysql.session    | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |
  613. | mysql.sys        | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |
  614. | debian-sys-maint | *CC744277A401A7D25BE1CA89AFF17BF607F876FF | mysql_native_password | localhost |
  615. +------------------+-------------------------------------------+-----------------------+-----------+
  616. 4 rows in set (0.00 sec)
  617. </code></pre>
  618.  
  619.  
  620.  
  621. <p>You can see in this example output that the&nbsp;<strong>root</strong>&nbsp;MySQL user now authenticates using a password. Once you confirm this on your own server, you can exit the MySQL shell:</p>
  622.  
  623.  
  624.  
  625. <pre class="wp-block-code"><code>exit
  626. </code></pre>
  627.  
  628.  
  629.  
  630. <p>Alternatively, some may find that it better suits their workflow to connect to MySQL with a dedicated user. To create such a user, open up the MySQL shell once again:</p>
  631.  
  632.  
  633.  
  634. <pre class="wp-block-code"><code>sudo mysql
  635. </code></pre>
  636.  
  637.  
  638.  
  639. <p><strong>Note:</strong>&nbsp;If you have password authentication enabled for&nbsp;<strong>root</strong>, as described in the preceding paragraphs, you will need to use a different command to access the MySQL shell. The following will run your MySQL client with regular user privileges, and you will only gain administrator privileges within the database by authenticating:</p>
  640.  
  641.  
  642.  
  643. <pre class="wp-block-code"><code>mysql -u root -p
  644. </code></pre>
  645.  
  646.  
  647.  
  648. <p>From there, create a new user and give it a strong password:</p>
  649.  
  650.  
  651.  
  652. <pre class="wp-block-code"><code>CREATE USER 'sammy'@'localhost' IDENTIFIED BY 'password';
  653. </code></pre>
  654.  
  655.  
  656.  
  657. <p>Then, grant your new user the appropriate privileges. For example, you could grant the user privileges to all tables within the database, as well as the power to add, change, and remove user privileges, with this command:</p>
  658.  
  659.  
  660.  
  661. <pre class="wp-block-code"><code>GRANT ALL PRIVILEGES ON *.* TO 'sammy'@'localhost' WITH GRANT OPTION;
  662. </code></pre>
  663.  
  664.  
  665.  
  666. <p>Note that, at this point, you do not need to run the&nbsp;<code>FLUSH PRIVILEGES</code>&nbsp;command again. This command is only needed when you modify the grant tables using statements like&nbsp;<code>INSERT</code>,&nbsp;<code>UPDATE</code>, or&nbsp;<code>DELETE</code>. Because you created a new user, instead of modifying an existing one,&nbsp;<code>FLUSH PRIVILEGES</code>&nbsp;is unnecessary here.</p>
  667.  
  668.  
  669.  
  670. <p>Following this, exit the MySQL shell:</p>
  671.  
  672.  
  673.  
  674. <pre class="wp-block-code"><code>exit
  675. </code></pre>
  676.  
  677.  
  678.  
  679. <p>Finally, let’s test the MySQL installation.</p>
  680.  
  681.  
  682.  
  683. <h2 class="wp-block-heading" id="step-4-—-testing-mysql">Step 4 — Testing MySQL</h2>
  684.  
  685.  
  686.  
  687. <p>Regardless of how you installed it, MySQL should have started running automatically. To test this, check its status.</p>
  688.  
  689.  
  690.  
  691. <pre class="wp-block-code"><code>systemctl status mysql.service
  692. </code></pre>
  693.  
  694.  
  695.  
  696. <p>You’ll see output similar to the following:Output</p>
  697.  
  698.  
  699.  
  700. <pre class="wp-block-code"><code>● mysql.service - MySQL Community Server
  701.   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en
  702.   Active: active (running) since Wed 2018-04-23 21:21:25 UTC; 30min ago
  703. Main PID: 3754 (mysqld)
  704.    Tasks: 28
  705.   Memory: 142.3M
  706.      CPU: 1.994s
  707.   CGroup: /system.slice/mysql.service
  708.           └─3754 /usr/sbin/mysqld
  709. </code></pre>
  710.  
  711.  
  712.  
  713. <p>If MySQL isn’t running, you can start it with&nbsp;<code>sudo systemctl start mysql</code>.</p>
  714.  
  715.  
  716.  
  717. <p>For an additional check, you can try connecting to the database using the&nbsp;<code>mysqladmin</code>&nbsp;tool, which is a client that lets you run administrative commands. For example, this command says to connect to MySQL as&nbsp;<strong>root</strong>&nbsp;(<code>-u root</code>), prompt for a password (<code>-p</code>), and return the version.</p>
  718.  
  719.  
  720.  
  721. <pre class="wp-block-code"><code>sudo mysqladmin -p -u root version
  722. </code></pre>
  723.  
  724.  
  725.  
  726. <p>You should see output similar to this:Output</p>
  727.  
  728.  
  729.  
  730. <pre class="wp-block-code"><code>mysqladmin  Ver 8.42 Distrib 5.7.21, for Linux on x86_64
  731. Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
  732.  
  733. Oracle is a registered trademark of Oracle Corporation and/or its
  734. affiliates. Other names may be trademarks of their respective
  735. owners.
  736.  
  737. Server version      5.7.21-1ubuntu1
  738. Protocol version    10
  739. Connection      Localhost via UNIX socket
  740. UNIX socket     /var/run/mysqld/mysqld.sock
  741. Uptime:         30 min 54 sec
  742.  
  743. Threads: 1  Questions: 12  Slow queries: 0  Opens: 115  Flush tables: 1  Open tables: 34  Queries per second avg: 0.006
  744. </code></pre>
  745.  
  746.  
  747.  
  748. <p>This means MySQL is up and running.</p>
  749. ]]></content:encoded>
  750. <wfw:commentRss>http://www.bictor.com/2020/04/24/mysql-on-ubuntu-18-04/feed/</wfw:commentRss>
  751. <slash:comments>0</slash:comments>
  752. <post-id xmlns="com-wordpress:feed-additions:1">362</post-id> </item>
  753. <item>
  754. <title>Enable Root Login in Ubuntu 18.04</title>
  755. <link>http://www.bictor.com/2020/04/24/enable-root-login-in-ubuntu-18-04/</link>
  756. <comments>http://www.bictor.com/2020/04/24/enable-root-login-in-ubuntu-18-04/#respond</comments>
  757. <dc:creator><![CDATA[thinkofashish@gmail.com]]></dc:creator>
  758. <pubDate>Fri, 24 Apr 2020 12:49:32 +0000</pubDate>
  759. <category><![CDATA[Linux]]></category>
  760. <guid isPermaLink="false">http://www.bictor.com/?p=360</guid>
  761.  
  762. <description><![CDATA[Step 1: Login into your account and open terminal Step 2: Type the following command to setup password for root account sudo passwd root Step 3: Open file /etc/pam.d/gdm-password sudo nano /etc/pam.d/gdm-password Step 4: Comment out the following line by]]></description>
  763. <content:encoded><![CDATA[
  764. <p>Step 1: Login into your account and open terminal</p>
  765.  
  766.  
  767.  
  768. <p>Step 2: Type the following command to setup password for root account</p>
  769.  
  770.  
  771.  
  772. <pre class="wp-block-preformatted">sudo passwd root</pre>
  773.  
  774.  
  775.  
  776. <p>Step 3: Open file /etc/pam.d/gdm-password</p>
  777.  
  778.  
  779.  
  780. <pre class="wp-block-preformatted">sudo nano /etc/pam.d/gdm-password</pre>
  781.  
  782.  
  783.  
  784. <p>Step 4: Comment out the following line by placing # infront of it</p>
  785.  
  786.  
  787.  
  788. <pre class="wp-block-preformatted">#auth    required    pam_succeed_if.so user != root quiet_success</pre>
  789.  
  790.  
  791.  
  792. <p>Step 5: Reboot the system</p>
  793.  
  794.  
  795.  
  796. <p></p>
  797. ]]></content:encoded>
  798. <wfw:commentRss>http://www.bictor.com/2020/04/24/enable-root-login-in-ubuntu-18-04/feed/</wfw:commentRss>
  799. <slash:comments>0</slash:comments>
  800. <post-id xmlns="com-wordpress:feed-additions:1">360</post-id> </item>
  801. </channel>
  802. </rss>
  803.  

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//www.bictor.com/feed/

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda