[NFBCS] Keeping Linux Tidy

Littlefield, Tyler tyler at tysdomain.com
Fri Apr 2 08:53:38 UTC 2021


My only issue with putting things in /usr/local/src or /usr/src is that:
1. sometimes kernel headers and/or kernel sources can go there.
2. You have to make it as root, and thus it's harder to manage.
Instead, if I have to install something from scratch I just have a src 
directory in my home dir. I use that and only sudo to make install.
There is also make deinstall/make uninstall sometimes.
HTH,
On 4/2/2021 12:41 AM, Jim Barbour via NFBCS wrote:
> Most of what you want to know comes down to manage your own process.
>
> For whatever reason, VeraCrypt is not available on the Ubuntu package repository.
>
> I would create a source directory under /usr/local
>
>  From a terminal...
>
> % sudo mkdir /usr/local/src
> % cd /usr/local/src
> % sudo mkdir VeraCrypt
> % sudo chown <me> VeraCrypt
> % cd VeraCrypt
> % mkdir .archive
> % mv /path/to/veracrypt-1.23-setup.tar.bz2 .archive/.
> % tar -xjf .archive/veracrypt-1.23-setup.tar.bz2
>
> Then run the install scripts as root.  Paying particular attention to
> where it puts files.
>
> You *could* then remove /usr/local/src/VeraCrypt
>
> But I wouldn't Instead I was leave it there as documentation about the
> version of VeraCrypt installed on the machine.
>
> In future, if you need to build from source, create a new directory
> off of /usr/local/src and put your tarball contents in there.
>
> Hope this gets you started,
>
> Jim
>
>
> On Thu, Apr 01, 2021 at 04:19:57PM -0400, Jonesy Cee via NFBCS wrote:
>> I am new to Linux and have a very simple question. I’m OCD and must keep my new Ubuntu install clean and tidy in regard to the files in file system. I understand that everything can automatically be kept clean by using apt autoclean after apt installing something. How is it that I can do the same thing if I manually download and install some thing. Here is an example after installing veracrypt with apt and having to manually download and run the installation script.
>>
>> . Download the installer tarball by running the command below.
>>
>> wget https://launchpad.net/veracrypt/trunk/1.23/+download/veracrypt-1.23-setup.tar.bz2
>> Once the download is complete, extract the VeraCrypt tarball, navigate to the source code extract directory and run the VeraCrypt installer.
>>
>> tar -xjf veracrypt-1.23-setup.tar.bz2
>> This will extrct the VeraCrypt setup scripts in the current working directory.
>>
>>
>>
>> —- I understand that the WGET command will grab and download the installation and then I unzip and run the script. This is just an example, but is there an easier way to clean up this or anything similar to this other than having to manually run, “rm file” and also rm on the directory?
>>
>>
>>
>> Should I CD to the downloads folder before running wget or git clone and then somehow use a command to remove everything in the folder after it has been used?
>>
>>
>>
>> Lastly, if I download an application or even just a script using something like wget or git clone, is there a certain place I should move the application for executable script to put it with my other applications? If I do so, would Atkin be able to see it with other applications by typing Alt F1.
>>
>>
>>
>> I very much appreciate any help you can provide ahead of time. Sorry for the noob question.
>>
>>   
>>
>>
>>
>> Never bend your head. Always hold it high. Look the world straight in the eye.”
>>
>> ~ Helen Keller
>> _______________________________________________
>> NFBCS mailing list
>> NFBCS at nfbnet.org
>> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
>> To unsubscribe, change your list options or get your account info for NFBCS:
>> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/jbar%40barcore.com
>>
> _______________________________________________
> NFBCS mailing list
> NFBCS at nfbnet.org
> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
> To unsubscribe, change your list options or get your account info for NFBCS:
> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/tyler%40tysdomain.com


-- 

Take Care,
Tyler Littlefield (he/him/his)

Tyler Littlefield Consulting: website development and business 
solutions. <http://tylerlittlefield.me> My personal site 
<http://tysdomain.com> My Linkedin 
<https://www.linkedin.com/in/ty-lerlittlefield> @Sorressean on Twitter 
<http://twitter.com/sorressean>




More information about the NFBCS mailing list